<div class="zs-body" data-ng-init="formInit('gzdevice', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzdevice');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">设备档案</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" ng-click="addRow('gzdevice') && openWindow('edit');" />
            <input type="button" class="zs-btn orange" value="编辑" ng-click="editRow('gzdevice', gzdevice.sRows[0]) && openWindow('edit')" />
            <input type="button" class="zs-btn orange" value="删除 " ng-click="delEntitys('gzdevice')" />
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gzdevice.queryObject['id']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="FS__ID" ng-model="gzdevice.queryObject['fsid']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="I_VERSION" ng-model="gzdevice.queryObject['iversion']"/>
                </span>-->
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="设备编号" ng-model="gzdevice.queryObject['ssbbh']" />
                </span>
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="设备名称" ng-model="gzdevice.queryObject['ssbmc']" />
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
                <input type="button" class="zs-btn orange" value="查询" 
                    ng-click="loadData('gzdevice')"/>
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox" ng-click="selectAll('gzdevice','allCheckbox');" />
                                    </th>
                                    <!--<th>ID</th>
									<th>FS__ID</th>
									<th>I_VERSION</th>-->
                                    <th>设备编号</th>
                                    <th>设备名称</th>
                                    <th>型号</th>
                                    <th>序列号</th>
                                    <th>购买日期</th>
                                    <th>是否有发票</th>

                                    <th>设备使用期限</th>

                                    <th>是否涉密设备</th>
                                    <th>最后年检</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzdevice.datas">
                                    <td>
                                        <input type="checkbox" ng-click="selectRow('gzdevice',r);" ng-model="r.selected" />
                                    </td>
                                    <!--  ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
                                    <!--  FS__ID -->
                                    <!--<td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.fsid"></label>
                                        </a>
                                   </td>-->
                                    <!--  I_VERSION -->
                                    <!--	<td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.iversion"></label>
                                        </a>
                                   </td>-->
                                    <!--  设备编号 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.ssbbh"></label>
                                        </a>
                                    </td>
                                    <!--  设备名称 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.ssbmc"></label>
                                        </a>
                                    </td>
                                    <!--  型号 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.sxh"></label>
                                        </a>
                                    </td>
                                    <!--  序列号 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.sxlh"></label>
                                        </a>
                                    </td>
                                    <!--  购买日期 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.dgmrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                    </td>
                                    <!--  是否有发票 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.isfyfpName"></label>
                                        </a>
                                    </td>

                                    <!--  设备使用期限 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.ssbsyqx"></label>
                                        </a>
                                    </td>

                                    <!--  是否涉密设备 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.isfsmsbName"></label>
                                        </a>
                                    </td>
                                    <!--  最后年检 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.szhnj"></label>
                                        </a>
                                    </td>
                                    <!--  状态 -->
                                    <td>
                                        <a ng-click="editRow('gzdevice',r) && openWindow('edit');">
                                            <label ng-bind="r.sztName"></label>
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzdevice'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="设备编辑" width='560px' height='280px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
                            <!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevice.editRow.id" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">FS__ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevice.editRow.fsid" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">I_VERSION</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevice.editRow.iversion" class="zs-input" />
                                </td>
                            </tr>-->
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>设备编号
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.ssbbh" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="设备编号" required ng-model="gzdevice.editRow.ssbbh"
                                            name="form_ssbbh" /></span>
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>设备名称
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.ssbmc" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="设备名称" required ng-model="gzdevice.editRow.ssbmc"
                                            name="form_ssbmc" /></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>型号
                                </td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.sxh" class="zs-input" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="型号" required ng-model="gzdevice.editRow.sxh"
                                            name="form_sxh" /></span>
                                </td>

                                <td class="text" width="20%">序列号</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.sxlh" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">
                                    <font color="red">*</font>购买日期
                                </td>
                                <td class="left" width="30%"><span>
                                        <ag-Datebox id='fi_dgmrq' showcurday='gzdevice.editRow.FIELD_ISNEW' class="zs-input"
                                            style="width:175px;height: 28px" ng-model="gzdevice.editRow.dgmrq">
                                        </ag-Datebox>
                                    </span>

                                    <span ng-show="false"><input hide-novalidate="true" alias="购买日期" required ng-model="gzdevice.editRow.dgmrq"
                                            name="form_dgmrq" /></span>
                                </td>

                                <td class="text" width="20%">是否有发票</td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:175px;height:28px;" para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                        ng-model="gzdevice.editRow.isfyfp" text-Value="gzdevice.editRow.isfyfpName" />
                                    <!--<input type="text" ng-model="gzdevice.editRow.isfyfp" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">发票</td>
                                <td class="left" width="30%">
                                    <ag-Upload ng-model="gzdevice.editRow.sfpfj" para="{}"></ag-Upload>
                                </td>

                                <td class="text" width="20%">设备使用期限</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.ssbsyqx" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">详细参数</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.sxxcs" class="zs-input" />
                                </td>

                                <td class="text" width="20%">
                                    <font color="red">*</font>是否涉密
                                </td>
                                <td class="left" width="30%">
                                    <ag-Combobox style="width:175px;height:28px;" para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                        ng-model="gzdevice.editRow.isfsmsb" text-Value="gzdevice.editRow.isfsmsbName" />

                                    <span ng-show="false"><input hide-novalidate="true" alias="是否涉密设备" required
                                            ng-model="gzdevice.editRow.isfsmsb" name="form_isfsmsb" /></span>
                                    <!--<input type="text" ng-model="gzdevice.editRow.isfsmsb" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">最后年检</td>
                                <td class="left" width="30%">
                                    <input type="text" ng-model="gzdevice.editRow.szhnj" class="zs-input" />
                                </td>

                                <td class="text" width="20%">状态</td>
                                <td class="left" width="30%">
                                	<ag-Combobox style="width:175px;height:28px;"
                                        para="{	uDictionary:true,
                                        		dictionary:'p_clzt'}"
                                        ng-model="gzdevice.editRow.szt"
                                        text-Value="gzdevice.editRow.sztName" />
                                    <!--<input type="text" ng-model="gzdevice.editRow.szt" class="zs-input" />-->
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red" ng-click="formValidate(form) && save('gzdevice', gzdevice.editRow, saveCloseWindow)" />
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>